home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat2 / xsegs.2 < prev    next >
Text File  |  1999-09-16  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. xsegs(2)                       Scilab Function                       xsegs(2)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   xsegs - draw unconnected segments
  13.  
  14. CALLING SEQUENCE
  15.   xsegs(nx,ny,[style])
  16.  
  17. PARAMETERS
  18.  
  19.   nx,ny          : two matrices of the same size 2*n
  20.  
  21.   style          : a matrix of size n or a scalar. If style is a positive
  22.                  scalar it gives the dash style to use for all segments, if
  23.                  it is a negative scalar then current dash style is used, if
  24.                  it is a vector style[i] gives the style to use for segment
  25.                  i.
  26.  
  27. DESCRIPTION
  28.   this function draws a set of unconnected segments given by nx,ny which are
  29.   internally considered as vectors ( using the Fortran storage convention).
  30.   The coordinates of the two points defining a segment are given by two con-
  31.   secutive values of nx and ny.
  32.  
  33.   (nx[i],ny[i])-->(nx[i+1],nx[i+2])
  34.  
  35.   Using matrices of size (2,.) the segments can be defined by
  36.   nx=[ xi_1,xi_
  37.        xf_1,xf_2,...  ]
  38.  
  39.   ny=[ yi_1,yi_2,.....;
  40.       yf_1,yf_2,...  ]
  41.   the segments are then (xi_k,yi_k)->(xf_k,yf_k)
  42.  
  43. EXAMPLE
  44.   x=2*%pi*(0:9)/8;
  45.   x1=[sin(x);9*sin(x)];
  46.   y1=[cos(x);9*cos(x)];
  47.   plot2d([-10,10],[-10,10],[-1,-1],"022");
  48.   xset('clipgrf')
  49.   xsegs(x1,y1,0:9);
  50.   xset('clipoff')
  51.  
  52. AUTHOR
  53.   C. J.Ph
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.